<div class="x_panel">
  <div class="x_content" style="display: block;">
    <!--表格主体内容-->
    <div class="nav navbar-right panel_toolbox">
      <a class="fa fa-plus" href="/course/add-class.html"> 添加</a>
    </div>
    <br><br>
    <div class="row-fluid">
      <form action="/course/class.html" method="get">
        <div class="col-md-3 col-sm-3 col-xs-3">
          <label class="control-label">名称</label>
          <input type="text" class="form-control-new" name="form[class_name]" value="{if isset($query.class_name)}{$query.class_name}{/if}">
        </div>
        <button type="submit" class="btn btn-primary" style="">搜索</button>
      </form>
    </div>
    <br><br>
    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">序号</th>
          <th>班级名称</th>
          <th>排序</th>
          <th>创建时间</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $class.lists as $classitem}
        <tr>
          <td>{$classitem.class_id}</td>
          <td>{$classitem.class_name}</td>
          <td>{$classitem.class_order}</td>
          <td>{$classitem.add_time}</td>
          <td>
            <div class="x_content">
              <a class="btn btn-primary btn-xs" href="{eval U(['course/edit-class','class_id'=>$classitem.class_id])}"> 编辑</a>
              <button class="btn btn-danger btn-xs" data-toggle="dropdown">删除
                <i class="icon-angle-down"></i></button>
              <ul class="dropdown-menu">
                <li><a href="{eval U(['course/delete-class','class_id'=>$classitem.class_id])}">确定</a></li>
                <li><a href="javascript:;">取消</a></li>
              </ul>
            </div>
          </td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->

      {Yii::$app->view->render('/com/pager.php',['pager'=>$class['pager']])}
    </div>
  </div>
</div>

